]> Lady’s Gitweb - Langdev/blob - public/urn:fdc:langdev.xyz:20160819:jsv:jst/sources/Apple Dictionary/Makefile
Move archived files into public/
[Langdev] / public / urn:fdc:langdev.xyz:20160819:jsv:jst / sources / Apple Dictionary / Makefile
1 #
2 # Makefile
3 #
4 #
5 #
6
7 ###########################
8
9 # You need to edit these values.
10
11 DICT_NAME = "Jästūgā - English"
12 DICT_SRC_PATH = x-XX-jt.xml
13 CSS_PATH = x-XX-jt.css
14 PLIST_PATH = Info.plist
15
16 DICT_BUILD_OPTS =
17 # Suppress adding supplementary key.
18 DICT_BUILD_OPTS = -s 0 # Suppress adding supplementary key.
19
20 ###########################
21
22 # The DICT_BUILD_TOOL_DIR value is used also in "build_dict.sh" script.
23 # You need to set it when you invoke the script directly.
24
25 DICT_BUILD_TOOL_DIR = "/Developer/Extras/Dictionary Development Kit"
26 DICT_BUILD_TOOL_BIN = "$(DICT_BUILD_TOOL_DIR)/bin"
27
28 ###########################
29
30 DICT_DEV_KIT_OBJ_DIR = ./objects
31 export DICT_DEV_KIT_OBJ_DIR
32
33 DESTINATION_FOLDER = ~/Library/Dictionaries
34 RM = /bin/rm
35
36 ###########################
37
38 all:
39 "$(DICT_BUILD_TOOL_BIN)/build_dict.sh" $(DICT_BUILD_OPTS) $(DICT_NAME) $(DICT_SRC_PATH) $(CSS_PATH) $(PLIST_PATH)
40 echo "Done."
41
42
43 install:
44 echo "Installing into $(DESTINATION_FOLDER)".
45 mkdir -p $(DESTINATION_FOLDER)
46 ditto --noextattr --norsrc $(DICT_DEV_KIT_OBJ_DIR)/$(DICT_NAME).dictionary $(DESTINATION_FOLDER)/$(DICT_NAME).dictionary
47 touch $(DESTINATION_FOLDER)
48 echo "Done."
49 echo "To test the new dictionary, try Dictionary.app."
50
51 clean:
52 $(RM) -rf $(DICT_DEV_KIT_OBJ_DIR)
This page took 0.057971 seconds and 5 git commands to generate.